//
//  ZallCheckBox.h
//  ZJS-DRIVER
//
//  Created by so on 16/6/3.
//  Copyright © 2016年 liulei. All rights reserved.
//

#import "ZallBaseControl.h"

typedef NS_OPTIONS(NSUInteger, ZallCheckBoxState) {
    ZallCheckBoxStateNormal     = 0,    //默认
    ZallCheckBoxStateSelected,          //选中
    ZallCheckBoxStateDisabled           //不可用
};

@interface ZallCheckBox : ZallBaseControl {
    UIImageView *_imageView;
}

/**
 *  @brief  图片控件
 */
@property (nonnull, strong, nonatomic, readonly) UIImageView *imageView;

/**
 *  @brief  状态
 */
@property (assign, nonatomic, readonly) ZallCheckBoxState boxState;

/**
 *  @brief  给指定状态设置图片
 */
- (void)setImage:(nullable UIImage *)image forState:(ZallCheckBoxState)state;

/**
 *  @brief  获取指定状态的图片
 */
- (nullable UIImage *)imageForState:(ZallCheckBoxState)state;

/**
 *  @brief  触发block
 */
@property (copy, nonatomic, nullable) void((^actionBlock))(ZallCheckBoxState state);

@end
